import request from '@/utils/request'

export function login(username, password, code, uuid) {
  return request({
    url: '/admin/login/login',
    method: 'post',
    data: {
      username,
      password,
      code,
      uuid
    }
  })
}

export function getInfo() {
  return request({
    url: '/admin/login/info',
    method: 'get'
  })
}


export function logout() {
  return request({
    url: '/admin/login/logout',
    method: 'get'
  })
}


export function getUserInfo(){
  return request({
    url:'ajax.common/member_info',
    method:'get'
  })
}

export function refreshToken() { // 刷新Token
  return request({
    url: '/back/manager/refreshToken',
    method: 'get'
  })
}



export function getCodeImg() {
  return request({
    url: 'back/manager/code',
    method: 'get'
  })
}

